ImagePicker

constructor(sourceType: UIImagePickerControllerSourceType = UIImagePickerControllerSourceType.UIImagePickerControllerSourceTypePhotoLibrary, mediaType: Set<NavigationSpec.ImagePicker.MediaType> = setOf(MediaType.IMAGE), navigationDelegate: UINavigationControllerDelegateProtocol, imagePickerDelegate: UIImagePickerControllerDelegateProtocol, animated: Boolean = false, completion: () -> Unit? = null)

Parameters

sourceType

the UIImagePickerControllerSourceType to pick

mediaType

Set of allowed MediaTypes to pick

navigationDelegate

The UINavigationControllerDelegateProtocol added to the UIImagePickerController

imagePickerDelegate

The UIImagePickerControllerDelegateProtocol added to the UIImagePickerController

animated

Specifies whether transition should be animated

completion

Optional function called when presentation is completed